<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改昵称-<?php echo $cfg_webname;?></title>
<link href="<?php echo $cfg_basehost;?>/css/v2_index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.superslide.2.1.1.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $cfg_basehost;?>/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
.input_container{margin-bottom:20px;}
.input_container label{line-height:26px;height:26px;font-size:14px;display:block;padding-bottom:10px;}
.intxt{width:60%;font-size:14px;color:#333;height:30px;line-height:30px;border:1px solid #eee;padding:5px 5px 5px 10px;}
.newbtn{width:378px;font-size:14px;color:#333;height:30px;line-height:30px;border:1px solid #eee;padding:5px 10px;}
input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-appearance:none;border:0;border-radius:0;}
.mima-content{margin-top:15px;}
.mima-content .hint{margin-top:10px;color:#999;display:inline-block;}
.validWrapper{height:40px;overflow:hidden;}
#safequestion,#newsafequestion{width:220px;border-radius:2px;border:1px solid #ccc;font-size:12px;padding:5px;line-height:30px;height:30px;vertical-align:middle;list-style:none;outline:none;}
.msg{color:red;padding-top:5px;}
.uc-content-box{min-height:423px;}
.formbutton{width:80px;}
</style>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm");?>
<?php include(DEDEMEMBER."/templets/left.htm");?>

<!-- 右侧功能定位 -->
<div class="user-right">
<div class="uc-box uc-main-box">
<div class="uc-content-box order-list-box">
<div class="box-hd"><h1 class="title">修改昵称</h1></div>
 
<!-- 昵称修改 -->
<div class="mima-content">
<form action="edit_user.php" method="post" enctype="multipart/form-data" id="tijiaoqilaiba" name="form2"  >
<input type="hidden" name="dopost" value="save" />
<div class="input_container">
<label>用户昵称</label>
<input name="uname" type="text" id="user" class="newbtn" value="<?php echo $cfg_ml->M_UserName;?>" />
<div class="msg"></div>
</div>
<div class="mima-act"><button class="formbutton" type="button">保存</button></div>
</div>
</div>
</form>
</div>
<!-- 昵称修改 End -->

</div>
<!-- 右侧功能定位 End -->

</div>

<script type="text/javascript">
function checknicheg(){
txt=$("#user").val();
$.post("edit_user.php",{a:'checkuname',uname:txt},function(result){	  
if(result == 'ok'){
result = '<font color="green">当前昵称可用</font>';		  
}   
$(".msg").html(result); 
});
}
$("#user").keyup(function(){
checknicheg();
});
$(".formbutton").click(function(){
txt=$("#user").val();
$.post("edit_user.php",{a:'checkuname',uname:txt},function(result){
if(result != 'ok'){
$(".msg").html(result);
} else{
$("#tijiaoqilaiba").submit();	 
}   
});
})
</script>

<?php include(DEDEMEMBER."/templets/footer.htm");?>

</body>
</html>